grid: Only pass baselines to children that request it
authorTimm Bäder <mail@baedert.org>
Wed, 11 Oct 2017 06:49:44 +0000 (08:49 +0200)
committerTimm Bäder <mail@baedert.org>
Wed, 11 Oct 2017 06:50:21 +0000 (08:50 +0200)
gtk/gtkgrid.c

index 50d2865f628f09d411b90850f0b453b50d24a56b..6a98bd6a3f2377175dad0f97a4b9a748efad91d9 100644 (file)
@@ -1538,7 +1538,7 @@ allocate_child (GtkGridRequest *request,
   attach = &child->attach[orientation];
 
   *position = lines->lines[attach->pos - lines->min].position;
-  if (attach->span == 1)
+  if (attach->span == 1 && gtk_widget_get_valign (child->widget) == GTK_ALIGN_BASELINE)
     *baseline = lines->lines[attach->pos - lines->min].allocated_baseline;
   else
     *baseline = -1;